#ifndef SENSOR_H
#define SENSOR_H

#include "circuitcomponent.h"

class Sensor : public CircuitComponent
{
    Q_OBJECT
public:
    explicit Sensor(QGraphicsItem *parent = nullptr);

    QPointF inputPort() const override;
    QPointF outputPort() const override;

    void setText(const QString &text);

protected:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
    QRectF boundingRect() const override;

private:
    QString m_text="";
};

#endif // SENSOR_H
